package com.example.order.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class StockController {
    @RequestMapping("/readStock")
    public String readStock(){
        System.out.println("网关测试：stock服务");
        return "网关测试：stock服务";
    }

    @RequestMapping("/readOrder")
    public String readOrder(){
        System.out.println("网关测试：order服务");
        return "网关测试：order服务";
    }
}














